<template>
  <button :class="'lst-' + type" class="lst-button" @click="btnClick">
    <span><slot></slot></span>
  </button>
</template>

<script>
export default {
  props: ['type'],
  methods: {
    btnClick() {
      this.$emit('click')
    }
  }
}
</script>

<style lang="less" scoped>
.lst-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  -webkit-appearance: none;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  -webkit-transition: 0.1s;
  transition: 0.1s;
  font-weight: 500;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 4px;
}
.lst-primary {
  color: #fff;
  background-color: #409eff;
  border-color: #409eff;
}
</style>
